﻿using System;
using System.Collections.Generic;
using YJKRoomInspection.Model;
using YJKRevitKernel.FormUtility.ModelessFormControlSuite.ControlLayer;
using YJKRevitKernel.FormUtility.ModelessFormControlSuite.ModelLayer;

namespace YJKRoomInspection.ShowDataForm.ModellessFrame
{
	public class ManualAddFrontRoomModelessManger : BaseLoopMangerSwitch, IAdapatResultGet
	{
		public List<AdapteRoomResulePacker> LstAdaptResult
		{
			get
			{
				return this.m_lstResult;
			}
		}

		internal ManualAddFrontRoomModelessManger(ManualAddFrontRoomForm_ModellessVersion inputForm, IOperateStackFactory inputFactory) : base(inputForm.UiDoc, inputForm, inputFactory, inputForm.RevitHandle, true)
		{
		}

		protected override void DoAfterWhile()
		{
			this.m_lstResult = new List<AdapteRoomResulePacker>();
			foreach (IOperateStack operateStack in this.m_lstAllOperateStack)
			{
				if (operateStack is IAdapatResultGet)
				{
					this.m_lstResult.AddRange((operateStack as IAdapatResultGet).LstAdaptResult);
				}
			}
		}

		private List<AdapteRoomResulePacker> m_lstResult = new List<AdapteRoomResulePacker>();
	}
}
